package com.vf.admin.client.dao;

import com.vf.admin.common.db.BaseDao;
import com.vf.admin.miaodong.entity.WithdrawFeeLevel;
import com.vf.admin.miaodong.entity.WxAppletConfigs;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>Title : 小程序支付配置</p>
 * <p>Description : </p>
 * <p>DevelopTools : IDEA</p>
 * <p>DevelopSystem : Windows10</p>
 *
 * @Author : NemoMeng
 * @Date 2023/11/29 10:13
 */
@Repository
public class WxAppletConfigsDao extends BaseDao<WxAppletConfigs> {


    public WxAppletConfigs getByAppId( String mchId) {

        ArrayList<Object> paramList = new ArrayList<>();
        StringBuilder sbStr = new StringBuilder(" select * from wx_applet_configs where mch_id = ? ");
        paramList.add(mchId);
        String sql = sbStr.toString();
        return this.queryObj(sql, paramList, WxAppletConfigs.class);
    }
}
